package com.itcms.common.security;

import org.apache.shiro.authc.UsernamePasswordToken;

public class CustomizedToken extends UsernamePasswordToken {
	private static final long serialVersionUID = 7800496088516013102L;
	
	//登录类型，判断是本地登录，还是sso登录
    private String loginType;

    public CustomizedToken(final String username, final String password,String loginType) {
        super(username,password);
        this.loginType = loginType;
    }
    public CustomizedToken(final String username, final String password,
            final boolean rememberMe, final String host, String loginType) {
    	super(username,password,rememberMe,host);
    	this.loginType = loginType;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
}
